package com.xncoding.design.ZeRenLian.demo0;

public class Main {
    public static void main(String[] args) {
        GatewayHandler gate01 = new CurrentLimitHandler();
        GatewayHandler gate02 = new BlacklistHandler();
        GatewayHandler gate03 = new ConversationHandler();
//        gate01.setNextGatewayHandler(gate02);
//        gate02.setNextGatewayHandler(gate03);
//        gate03.setNextGatewayHandler(null);

        gate01.appendNext(gate02).appendNext(gate03);

        gate01.service();
    }
}
